import React, { useState } from "react";
import {Col, Input, Row} from "antd";

export default function  FormulaInput(prop)  {
    console.log("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
   console.log( prop.formulaText);
  // let _v=prop.formulaText;
   const  [formulaText, setFormulaText] =  useState("test");
   // setFormulaText({ value: prop.formulaText });
    /**
     * When a Cell value changes, re-determine the display value
     * by calling the formula calculation
     */
    const onChange = (e) => {
        //setFormulaText(e.target.value);
        //_v=e.target.value;
        setFormulaText({ formulaText: e.target.value })
        // this.display = this.determineDisplay({ x: this.props.x, y: this.props.y }, e.target.value)
        // this.props.updateCells()
    }
    //const  [formulaIText, setFormulaIText] =  useState("testText");z
    return  <Input placeholder="总账公式..." value={formulaText} onChange={onChange} />
}

